/**
 * 
 */
package com.googlecode.jasmincc.framework.services.implementation;

import java.io.File;
import java.io.FilenameFilter;

/**
 * @author Administrator
 * 
 */
public class MyFileNameFilter implements FilenameFilter {

	protected String extName = null;

	public MyFileNameFilter(String extName) {
		this.extName = extName;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.io.FilenameFilter#accept(java.io.File, java.lang.String)
	 */
	public boolean accept(File arg0, String arg1) {
		return arg1.endsWith(extName);
	}

	/**
	 * @return the extName
	 */
	public String getExtension() {
		return this.extName;
	}

	/**
	 * @param extName the extension to set
	 */
	public void setExtension(String extension) {
		this.extName = extension;
	}

}
